<?php
/**
 * short_url的对外接口api
 * @author 贾忠强
 */

include_once("ThePage.class.php");

$page = new ThePage();
$str = $_GET['str'] ? $_GET['str'] : '';

//include_once(LIB_BASE_PATH . 'CacheTtserver.class.php');
include_once(LIB_ITEM_PATH . 'short_url.class.php');

$short_url = new short_url($tt_servers, 'su_');

echo SHORT_URL. $short_url->get_short_url($str);